package com.yic.module.mes.controller.admin.moroute.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 工单工艺路线 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MoRouteBaseVO {

    @Schema(description = "工单排产ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32661")
    @NotNull(message = "工单排产ID不能为空")
    private Long moId;

    @Schema(description = "工单号")
    private String moCode;

    @Schema(description = "工艺路线ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13473")
    @NotNull(message = "工艺路线ID不能为空")
    private Long routeId;

    @Schema(description = "当前工序", requiredMode = Schema.RequiredMode.REQUIRED, example = "14636")
    @NotNull(message = "当前工序不能为空")
    private Long processId;

    @Schema(description = "下道工序", example = "5141")
    private Long nextProcessId;

    @Schema(description = "顺序")
    private Integer subsequence;

    @Schema(description = "与下道工序关系")
    private Integer link;

    @Schema(description = "是否为关键工序")
    private Integer mainProcess;

}
